package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.card.EntityXfShoppingCart;
import com.ocom.common.request.payconfig.GetDishesFormCartRequest;
import com.ocom.common.request.payconfig.RemoveDishesToCartRequest;
import com.ocom.common.request.payconfig.RollbackDishesCartRequest;
import com.ocom.common.request.payconfig.SubmitDishesCartRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.payconfig.GetDishesFormCartVo;

import java.util.List;

public interface XfShoppingCartService extends IService<EntityXfShoppingCart> {
    Result addDishesToCart(EntityXfShoppingCart xfShoppingCart, Long companyId);
    boolean removeDishesToCart(RemoveDishesToCartRequest request,Long companyId);

    List<GetDishesFormCartVo> getDishesFormCart(GetDishesFormCartRequest request,Long companyId);

    boolean submitDishesCart(SubmitDishesCartRequest request,Long companyId);

    boolean rollbackDishesCart(RollbackDishesCartRequest request,Long companyId);
}
